home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / masdir54.arj / DRDOS.EXE / SDLSETUP.BAT < prev   
DOS Batch File  |  1991-03-27  |  7KB  |  187 lines

  1. @ECHO Off
  2. : SDLSETUP.BAT for DR DOS Version 5.0
  3. IF NOT EXIST sdl_get.EXE GOTO FILES
  4. sdl_get E
  5. IF NOT ERRORLEVEL 20 GOTO ENVIRON
  6. sdl_get B
  7. IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
  8. set GET=SDLSETUP
  9. if NOT (%GET%)==(SDLSETUP) goto ENVIRON
  10. if NOT (%1)==() SET GET=SDLCONFG
  11. ECHO %GET%.BAT copyright (c) 1987-1991 Bob Stephan. All rights reserved.
  12. Echo * * * This version of %GET% is for DR DOS Version 5.0 * * *
  13. ECHO * * *
  14. ECHO This is a BATCH program so it may be a little slow, but
  15. ECHO you don't have to run it very often so please be patient.
  16. ECHO * * *
  17. sdl_get YE
  18. if errorlevel 2 goto drive_ok
  19. Echo It will run faster if you run it from a hard disk or a RAM disk (VDISK).
  20. Echo For best results COPY %GET%:SDL*.* to a RAM drive or to a subdirectory on
  21. Echo your hard disk. You may exit to do this now if you wish.  
  22. Echo If you use the floppy disk, it must NOT be write protected.
  23. ECHO * * *
  24. sdl_get N "Are you ready to continue (Y,n)? "
  25. IF ERRORLEVEL 126 GOTO QUIT
  26. IF NOT ERRORLEVEL 89 GOTO QUIT
  27. :drive_ok
  28. IF NOT EXIST SDL.COM GOTO FILES
  29. SDL /!
  30. SET $=54 55
  31. IF ERRORLEVEL 54 IF NOT ERRORLEVEL 55 GOTO READY
  32. IF ERRORLEVEL 155 GOTO VERSION
  33. IF NOT ERRORLEVEL 154 GOTO VERSION
  34. SET $=154 155
  35. :READY
  36. ECHO This program will modify the file SDL.COM on this disk.
  37. ECHO None of your original files will be modified in any way.
  38. ECHO Your CONFIG.SYS and AUTOEXEC.BAT will NOT be changed.
  39. ECHO * * *
  40. ECHO Checking system resources. Please wait.
  41. IF NOT EXIST ISLABEL.EXE GOTO CKDEBUG
  42. ISLABEL MASDIR 5∙3 >NUL
  43. IF NOT ERRORLEVEL 1 GOTO CKDEBUG
  44. ECHO If this is the original SDL disk you should establish a working
  45. ECHO disk and/or directory to preserve the original (see SDLSETUP.DOC).
  46. ECHO * * *
  47. sdl_get N "Are you ready to continue (Y,n)? "
  48. IF ERRORLEVEL 126 GOTO QUIT
  49. IF NOT ERRORLEVEL 89 GOTO QUIT
  50. :CKDEBUG Test for running DEBUG
  51. IF EXIST SID.EXE GOTO CKFILES
  52. IF EXIST DEBUG.TST ERASE DEBUG.TST
  53. : **************************
  54. ECHO Q>>debug.txt
  55. : **************************
  56. SID <debug.txt >debug.tst
  57. IF NOT EXIST DEBUG.TST GOTO NODEBUG
  58. SDL_GET F DEBUG.TST
  59. IF %GET% == 0 GOTO NODEBUG
  60. IF EXIST DEBUG.T?T ERASE DEBUG.T?T >NUL
  61. :CKFILES
  62. FOR %%F IN (SDLPARMS.BAT SDLDEBUG.BAT SDLFINIS.BAT SDLNOTOG.BAT) DO IF NOT EXIST %%F GOTO FILES
  63. sdl_get D
  64. IF ERRORLEVEL 30 GOTO BEGIN
  65. IF NOT ERRORLEVEL 20 GOTO NOT1
  66. ECHO * * *
  67. set GET=SDLSETUP
  68. if NOT (%1)==() SET GET=SDLCONFG
  69. ECHO DOS Versions prior to 3.1 are not specifically supported. If you have
  70. Echo any difficulty running %GET% under DOS 2.x, please see SDLSETUP.DOC.
  71. ECHO * * *
  72. :BEGIN
  73. ECHO All checks completed, ready to proceed with SETUP.
  74. ECHO * * *
  75. set GET=SDLSETUP
  76. if NOT (%1)==() SET GET=SDLCONFG
  77. ECHO If you do not want to continue with %GET% press Esc to exit...
  78. sdl_get C "Press C to continue, D to read the Documentation first(C,d): " CD}~
  79. IF ERRORLEVEL 126 GOTO QUIT
  80. IF ERRORLEVEL 125 GOTO CONTINUE
  81. IF ERRORLEVEL 67 IF NOT ERRORLEVEL 68 GOTO CONTINUE
  82. IF NOT EXIST SDLSETUP.DOC GOTO MENTION
  83. IF NOT EXIST SDL_SHOW.EXE MORE <SDLSETUP.DOC
  84. IF EXIST SDL_SHOW.EXE SDL_SHOW SDLSETUP.DOC
  85. set GET=SDLSETUP
  86. if NOT (%1)==() SET GET=SDLCONFG
  87. ECHO Returning to %GET% ...
  88. ECHO * * *
  89. GOTO CONTINUE
  90. :MENTION
  91. echo SDLSETUP.DOC was not found and cannot be displayed now.
  92. ECHO You may copy or print SDLSETUP.DOC from the original MASDIR disk.
  93. Pause
  94. :CONTINUE
  95. sdl_get B
  96. ECHO * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  97. ECHO * * *                     INSTRUCTIONS                              * * *
  98. ECHO * * *             Please read before proceeding.                    * * *
  99. ECHO * * *                                                               * * *
  100. ECHO You may exit at any point by pressing Ctrl-C and answering Y to terminate.
  101. ECHO * * *
  102. ECHO You may skip to the next section at ANY PROMPT by pressing the Escape key
  103. ECHO (Esc on most keyboards).  Note that all selections are made by "pressing"
  104. ECHO single keys.  These selections are NOT "entered" by pressing the Enter
  105. ECHO key after making the selection.
  106. ECHO * * *
  107. ECHO The questions are set up with the original defaults capitalized.  If you
  108. ECHO select the capitalized choices the original defaults will be restored.
  109. ECHO If the choices are not alphabetic, the first one shown is the original
  110. ECHO default.  Either caps or lower case letters are OK for your selections.
  111. ECHO * * *
  112. ECHO If you do not want to change the operation of a selection, just press
  113. ECHO the Enter key (sometimes called Return or "<CR>").  This is indicated as
  114. ECHO choice (cr). Or press Esc to skip to the next section of questions.
  115. ECHO * * *
  116. PAUSE
  117. ECHO ESDL.COM >sdlsetup.txt
  118. REM Reset the size in GET
  119. sdl_get F SDL.COM
  120. IF (%1)==() SDLPARMS %$% %GET%
  121. IF (%1)==(SDLCONFG) SDLNOTOG %$% %GET%
  122. REM Normally the BATch file ends here, the rest are error messages.
  123. GOTO QUIT
  124. :NODEBUG
  125. ECHO * * *
  126. ECHO An error was encountered during the check of system resources.
  127. ECHO If the error message was "File creation error" and/or "File not found"
  128. ECHO it probably means the diskette is write protected.
  129. Echo * * *
  130. ECHO If the error message was "Bad command or file name" it probably
  131. Echo means that your operating system is MS or PC DOS. 
  132. Echo Please use the original MS DOS compatible setup program.
  133. ECHO * * *
  134. Echo If the error message was "Command or filename not recognized" or
  135. Echo 'Unknown command "sid"', or a similar message, it means that
  136. ECHO the DR DOS system file SID.EXE is not available.
  137. ECHO This program requires access to the DR DOS external command file
  138. ECHO SID.EXE.  It must be in this directory on this disk or in
  139. ECHO one of the directories on your path, which is
  140. PATH
  141. set GET=SDLSETUP
  142. if NOT (%1)==() SET GET=SDLCONFG
  143. ECHO Please correct the problem and run %GET% again.
  144. goto quit
  145. :FILES
  146. ECHO * * *
  147. ECHO The following files must be in this current directory on this disk:
  148. FOR %%F IN (SDL.COM SDL_GET.EXE SDLPARMS.BAT SDLNOTOG.BAT) DO ECHO %%F
  149. FOR %%F IN (SDLSETUP.BAT SDLFINIS.BAT SDLDEBUG.BAT) DO ECHO %%F
  150. IF (%$%)==(54 55) ECHO SDLTITLE.COM
  151. GOTO QUIT
  152. :NOT1
  153. ECHO * * *
  154. ECHO MASDIR requires DOS 2.0 or higher (3.x preferred).
  155. GOTO QUIT
  156. :VERSION
  157. ECHO * * *
  158. set GET=SDLSETUP
  159. if NOT (%1)==() SET GET=SDLCONFG
  160. ECHO The version of SDL.COM on this disk is incompatible with this
  161. ECHO version of %GET%.  Please copy compatible versions from
  162. ECHO your original MASDIR disk and try again.
  163. GOTO QUIT
  164. :ENVIRON
  165. ECHO * * *
  166. ECHO There is insufficient DOS Environment space to run this program.
  167. ECHO You already have the following items set in the environment:
  168. ECHO * * *
  169. SET GET=
  170. SET
  171. ECHO * * *
  172. ECHO This program needs about 10 more bytes of space.  You can clear
  173. ECHO one or more of the items out of the environment by entering
  174. ECHO commands like
  175. ECHO SET var=
  176. ECHO Where var is the name of one of the objects shown between the
  177. ECHO lines of asterisks above.  Each name is followed by the = sign.
  178. ECHO When you enter the command do not put anything after the = sign,
  179. ECHO not even a space.  Just press the Enter key (cr) immediately after
  180. ECHO the = key.  Do not clear COMSPEC, PATH, or PROMPT.
  181. ECHO After you have cleared one or more names from the environment,
  182. ECHO run this program again.
  183. :QUIT
  184. pause
  185. REM SDLDEBUG will clean up any temporary files.
  186. sdldebug END
  187.